<?php
namespace Modules\Activity\Entities\RotateLottery;;

use Modules\Core\Entities\BaseEntity as Model;
use ThrowException;

use Modules\Order\Traits\Skuable;

use Modules\Asset\Entities\PackageSku;

// 一番赏活动 副表
class Sku extends Model
{
    use Skuable;
    
    protected $table = 'rotate_lottery_skus';

   	protected $guarded = [];
    static public $resourcename = '大转盘奖品';

    protected $casts = [
        'assets' => 'json'
    ];

    public function activity()
    {
        return $this->belongsTo('\Modules\Activity\Entities\RotateLottery\Activity', 'activity_id');
    }

    // 获取列表
    static public function beforeGetList($options) 
    {
    	return $options;
    }
}
